{extend name="common/base" /}

{block name="title"}金币列表 - 财务列表{/block}

{block name="content"}
<div class="Hui-admin-article">
    <nav class="breadcrumb" style="background-color:#fff;padding: 0 24px">
        首页
        <span class="c-gray en">/</span>
        财务管理
        <span class="c-gray en">/</span>
        金币列表
    </nav>

    <article class="Hui-admin-content clearfix">
        <form class="panel" method="get" >
            <div class="panel-body">
                <div class="col-xs-12 col-sm-6 col-md-4">
                    <div class="row clearfix mb-10">
                        <span class="col-xs-4 form-item-label">金币类型类型：</span>
                        <span class="col-xs-8 form-item-control">
                            <span class="select-box">
                                <select name="type" class="select">
                                    <option value=''>全部</option>
                                    
                                    {foreach $types as $k=>$v}
                                    <option {if $v['id'] == $search.type}selected{/if} value="{$v.id}">{$v['title']}</option>
                                    {/foreach}
                                </select>
                            </span>
                        </span>
                    </div>
                </div>
                <div class="text-c"> 日期范围：
                    <input type="text" id="search-datetime-start" value="{$search.start}" name="start" class="input-text datetimepicker-input" style="width:120px;">
                    -
                    <input type="text" id="search-datetime-end" value="{$search.end}" name="end" class="input-text datetimepicker-input" style="width:120px;">
                    <input type="text" name="title" class="input-text" value="{$search.title}" style="width:250px" placeholder="输入手机号" id="" name="">
                    <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜记录</button>
                </div>
            </div>
        </form>

        <div class="panel mt-20">
            <div class="panel-body">
                <div class="clearfix">
                    <span class="f-l">
                        <a href="javascript:;" onclick="set_del_all()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
                    </span>
                    <span class="f-r">共有数据：<strong>{$count}</strong> 条</span>
                </div>
                <div class="mt-20 clearfix">
                    <table class="table table-border table-bordered table-bg table-hover table-sort">
                        <thead>
                            <tr>
                                <th scope="col" colspan="10">金币列表</th>
                            </tr>
                            <tr class="text-c">
                                <th width="25"><input type="checkbox" name="all" value=""></th>
                                <th width="">ID</th>
                                <th width="">流水号</th>
                                <th width="">用户</th>
                                <th>类型</th>
                                <th>金额</th>
                                <th>备注</th>
                                <th width="130">加入时间</th>
                                <th width="100">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {foreach name="list" key="k" item="v"}
                            <tr class="text-c">
                                <td><input name="list_box" type="checkbox"value="{$v.id}"  ></td>
                                <td>{$k+1}</td>
                                <td>{$v.serial_number}</td>
                                <td>{if empty($v.user_name)}游客{else}{$v.user_name}{/if}</td>
                                <td>{$v.type_name}</td>
                                <td>{$v.gold}</td>
                                <td>{$v.remark}</td>
                                <td>{$v.created|date="Y-m-d H:i:s"}</td>
                                <td class="td-manage">
                                    <a title="删除" href="javascript:;" onclick="set_del(this,{$v.id})" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>
                                </td>
                            </tr>
                            {/foreach}
                            
                        </tbody>
                    </table>
                    
                    {$page|raw}
                </div>
            </div>
        </div>
    </article>
</div>

<input name="delAll" type="hidden" value="{:url('balance_record/delAll')}">

<input name="detail" type="hidden" value="{:url('balance_record/detail')}">
{/block}


{block name="js"}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__LIB__/datatables/1.10.15/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__LIB__/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="__JS__/main.js"></script>
<script type="text/javascript">
    $(function(){
        runDatetimePicker();
    });
</script>
<!--/请在上方写此页面业务相关的脚本-->
{/block}

